From 499a6788ade01be9412aa2d0dcbeaf43384cec4e Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Thu, 23 Nov 2017 16:51:36 +0100 Subject: [PATCH] Expand documentation for Workspace::default_members field --- src/cargo/core/workspace.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/cargo/core/workspace.rs b/src/cargo/core/workspace.rs index d9307526b..3dc50a6f2 100644 --- a/src/cargo/core/workspace.rs +++ b/src/cargo/core/workspace.rs @@ -46,7 +46,16 @@ pub struct Workspace<'cfg> { // set above. members: Vec, - // The subset of `members` that are “default”. + // The subset of `members` that are used by the + // `build`, `check`, `test`, and `bench` subcommands + // when no package is selected with `--package` / `-p` and `--all` + // is not used. + // + // This is set by the `default-members` config + // in the `[workspace]` section. + // When unset, this is the same as `members` for virtual workspaces + // (`--all` is implied) + // or only the root package for non-virtual workspaces. default_members: Vec, // True, if this is a temporary workspace created for the purposes of -- 2.30.2